Automated insulin delivery system algorithm with a dual-hormone configuration (insulin and glucagon) for glucose control